<?php
/**
 * Created by PhpStorm.
 * User: 沁塵
 * Date: 2019/4/20
 * Time: 19:57
 */

namespace app\api\controller\v1;

use app\api\model\User as UserModel;
use think\Request;

class User
{

    /**
     * 查询所有用户
     * @return mixed
     */
    public function getUsers()
    {
        $result = UserModel::all();
        return writeJson(200, $result, '获取成功');
    }


}